%{
#define CHAPTER 4
char chapter[256];
%}

%%
".chapter ".*\n    {		/* Single */
  sscanf(yytext,"%*s %*[\"]%[^\"]",chapter);
  printf("<div class='chapter'>%d. %s</div>",CHAPTER,&chapter);
}
%%
